package com.kma.ncpractice2013.model;

/**
 * User: Illyas
 * Date: 11/24/13
 * Time: 3:37 PM
 */

public class Discount
{
    private static final int minimalDiscount = 0;
    private static final int maximalDiscount = 33;

    public static int getMinimalDiscount()
    {
        return minimalDiscount;
    }

    public static int getMaximalDiscount()
    {
        return maximalDiscount;
    }

    public static boolean isValid(Integer discount)
    {
        return (discount != null && discount <= getMaximalDiscount() && discount >= getMinimalDiscount());
    }

}
